GUI Help > Special > getToolBarButtonState

getToolBarButtonState
int state=getToolBarButtonState (handle toolbar, int item)

Description:
Retrieves the state of a toolbar button, ie. whether it is "pushed in" or not.

Return Value:
0 if button is normal, 1 if it is pushed in.

Parameters:
toolbar Handle of a toolbar gadget
item Index of the item, starting at 0 for the left-most icon on the toolbar.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)